<script setup>
import EmptyContent from '@/components/empty/Content.vue'
import markdownit from 'markdown-it'
const props = defineProps({
  content: {//日志内容
    type: String,
    default: ''
  }
})
const md = markdownit()
const parsedResult = computed(() => md.render(props.content))
</script>

<template>
  <div v-if=" props.content " v-html=" parsedResult "></div>
  <EmptyContent v-else/>
</template>

<style scoped lang="less">
</style>